
if __name__ == '__main__':
    responses = {}

    #设置一个标志，指出调查是否继续
    tag = True


    while tag:
        #提示输入被调查者的名字和回答
        name = input("\nWhat's your name?")
        response = input("Which mountain would you like to climb someday?")


        #将答卷存储到字典中
        responses[name] = response

        #看看是否还有人参与调查

        repeat = input("Would you like to let another person respond?(yes/no) ")
        if repeat == 'no':
            tag = False

        #调查结束，显示结果
    print("\n---poll results ---")
    for name,response in responses.items():
        print(name+" would like to climb "+response+".")